public class ChargeDependencyModel extends Object implements XMLMarshallable
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargeDependency">
<xs:complexType>
<xs:attribute name="masterCode" type="xs:string" use="required"/>
<xs:attribute name="dependentCode" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
ChargeDependencyModel()
Builds an empty charge dependency.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
String |
getDependentCode()
Gets the dependentCode of the charge dependency.
|
String |
getMasterCode()
Gets the masterCode of the charge dependency.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDependentCode(String dependentCode)
Sets the dependentCode of the charge dependency.
|
void |
setMasterCode(String masterCode)
Sets the masterCode of the charge dependency.
|
public ChargeDependencyModel()
public String getMasterCode()
public void setMasterCode(String masterCode)
masterCode - the masterCode of the charge dependency.public String getDependentCode()
public void setDependentCode(String dependentCode)
dependentCode - the dependentCode of the charge dependency.public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into